<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <title>稻稻工厂—商户自营管理</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/colorpicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/datepicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/uniform.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/select2.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-style.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-media.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-wysihtml5.css" />
    <link href="/thinkphp/Public/admin/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>

<body>
<!--Header-part-->
<div id="header">
    <h1><a href="dashboard.html">商户自营管理</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav">
        <li class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">欢迎 <?php echo ($seller); ?></span><b class="caret"></b></a></li>
        <li class=""><a title="" href="<?php echo U('Login/sellerLogin');?>"><i class="icon icon-cog"></i> <span class="text">商户登录</span></a></li>
        <li class=""><a title="" href="<?php echo U('Login/outSellerLogin');?>"><i class="icon icon-share-alt"></i> <span class="text">登出</span></a></li>
    </ul>
</div>
<!--sidebar-menu-->

<!--sidebar-menu-->

<div id="sidebar">
    <a href="javascript:;" class="visible-phone"><i class="icon icon-list"></i>Forms</a>
    <ul>
        <li>
            <a href="javascript:;"><i class="icon icon-list"></i> <span>商户自营商品</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Business/index');?>">自营商品列表</a></li>
            <li><a href="<?php echo U('Business/addGoods');?>">自营商品添加</a></li>
        </ul>
        <li>
            <a href="#"><i class="icon icon-list"></i> <span>我的订单</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Business/myOrder');?>">订单列表</a></li>
        </ul>
        <li>
            <a href="#"><i class="icon icon-list"></i> <span>商户信息</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Business/basicInfo');?>">基本信息修改</a></li>
        </ul>
    </ul>
</div>

<!--close-left-menu-stats-sidebar-->
<div id="content">
    <div class="container-fluid"><hr>
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title">
                        <span class="icon">
                            <i class="icon-info-sign"></i>
                        </span>
                        <h5>订单详细信息</h5>
                    </div>
                    <div class="widget-content nopadding">
                        <form class="form-horizontal" method="post" action="<?php echo U('Business/basicInfo');?>" name="basic_validate" id="basic_validate" novalidate="novalidate">
                            <div class="control-group">
                                <label class="control-label">订单编号：</label>
                                <div class="controls">
                                    <?php echo ($data["order_sn"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">订单状态：</label>
                                <div class="controls">
                                    <?php echo ($data["order_status_b"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">支付状态：</label>
                                <div class="controls">
                                    <?php echo ($data["pay_status_b"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">支付方式：</label>
                                <div class="controls">
                                    <?php echo ($data["pay_type_b"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">收货人：</label>
                                <div class="controls">
                                    <?php echo ($data["consignee"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">详细地址：</label>
                                <div class="controls">
                                    <?php echo ($data["province"]); ?> <?php echo ($data["city"]); ?> <?php echo ($data["zone"]); ?> <?php echo ($data["address"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">联系方式：</label>
                                <div class="controls">
                                    <?php echo ($data["mobile"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">收货方式：</label>
                                <div class="controls">
                                    <?php echo ($data["shipping_type_b"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">订单生成时间：</label>
                                <div class="controls">
                                    <?php echo ($data["add_time_b"]); ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">总价：</label>
                                <div class="controls">
                                    <?php echo ($data["goods_amount"]); ?>
                                </div>
                            </div>

                            <hr>
                            <h3>所购买的商品</h3>
                            <?php if(is_array($yanG2)): $i = 0; $__LIST__ = $yanG2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="control-group">
                                    <label class="control-label"><?php echo ($vo["goodsName"]); ?></label>
                                    <div class="controls">
                                        <img src="/thinkphp/Uploads/pic_goods/<?php echo ($vo["thumb"]); ?>" width="200">
                                    </div>
                                </div><?php endforeach; endif; else: echo "" ;endif; ?>

                            <span style="float:left; width:100%; text-align: center;">
                            <?php if($data[order_status] == '0'): ?><a href="<?php echo U('Business/updataOrderStatus',array('id'=>$data[id],'val'=>'2'));?>" class="btn btn-success">
                                    确认订单
                                </a>   <!--Business/updataOrderStatus-->
                            <?php else: ?>
                                <a href="<?php echo U('Business/updataOrderStatus',array('id'=>$data[id],'val'=>'0'));?>" class="btn btn-success">
                                    取消确认订单
                                </a>   <!--Business/updataOrderStatus--><?php endif; ?>
                            </span>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--Footer-part-->
<div class="row-fluid">
    <div id="footer" class="span12"> 2013 &copy; Matrix Admin. More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a> </div>
</div>
<!--end-Footer-part-->

<script src="/thinkphp/Public/admin/js/matrix.form_common.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.ui.custom.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-colorpicker.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-datepicker.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.toggle.buttons.html"></script>
<script src="/thinkphp/Public/admin/js/masked.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.uniform.js"></script>
<script src="/thinkphp/Public/admin/js/select2.min.js"></script>
<script src="/thinkphp/Public/admin/js/matrix.js"></script>
<script src="/thinkphp/Public/admin/js/wysihtml5-0.3.0.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.peity.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-wysihtml5.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.dataTables.min.js"></script>
<script src="/thinkphp/Public/admin/js/yanGradyJS/yanGrady.js"></script>
<script>
    $('.textarea_editor').wysihtml5();
</script>
</body>
</html>